import { Field, Int, ObjectType } from "@nestjs/graphql";
import { TaskEntity } from "../task.entity/task.entity";
import { ClassesEntity } from "../classes.entity/classes.entity";
import { TeacherEntity } from "../teacher.entity/teacher.entity";

@ObjectType()
export class TaskOnClassesEntity {
    @Field(() => TaskEntity, { nullable: true })
    task?: TaskEntity

    @Field(() => Int)
    taskId: number

    @Field(() => ClassesEntity, { nullable: true })
    classes?: ClassesEntity

    @Field(() => Int)
    classesId: number

    @Field(() => TeacherEntity, { nullable: true })
    teacher?: TeacherEntity
}
